﻿
namespace Huirui.Cavan.Presentation.Seedwork
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.Contracts;
    using System.Linq;
    using Huirui.Cavan.Core.Message;

    /// <summary>
    ///     Common base for ICoreModel implementation with Messages
    /// </summary>
    [Serializable]
    public abstract class CoreModel : ICoreModel
    {
        #region ICoreModel Members
        public virtual IList<AppMessage> Messages { get; set; }
        #endregion

        public CoreModel()
        {
            Messages = new List<AppMessage>();
        }
    }
}